/*
 * 
 */

const menuList = [
  {
    resourceName: "角色",
    resourceUrl: "/",
    resourceIcon: "icon-jiahao",
    children: [
      {
        resourceName: "添加角色",
        resourceUrl: "/addpersonal",
        resourceIcon: "icon-caidan1",
      }
    ]
  },
  {
    resourceName: "上传管理",
    resourceUrl: "/",
    resourceIcon: "icon-shangchuan",
    children: [
        {
          resourceName: "添加分类地区",
          resourceUrl: "/addFL",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "添加分类类型",
          resourceUrl: "/addTYPE",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "上传轮播图片",
          resourceUrl: "/uploadSwiperimg",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "上传封面图片",
          resourceUrl: "/uploadimg",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "上传视频",
          resourceUrl: "/uploadvideo",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "电影资源信息列表",
          resourceUrl: "/moivesourcelist",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "电视资源信息列表",
          resourceUrl: "/tvsourcelist",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "管理视频资源列表",
          resourceUrl: "/managerSourcelist",
          resourceIcon: "icon-caidan1",
        },
      ]
  },
  {
    resourceName: "用户",
    resourceUrl: "/",
    resourceIcon: "icon-guanyuwomen",
    children: [
        {
          resourceName: "用户列表",
          resourceUrl: "/userlist",
          resourceIcon: "icon-caidan1",
        },
        {
          resourceName: "提现列表",
          resourceUrl: "/withdraw",
          resourceIcon: "icon-caidan1",
        },
      ]
  },
  {
    resourceName: "我的面板",
    resourceUrl: "/",
    resourceIcon: "icon-wode2",
    children: [
      {
        resourceName: "修改密码",
        resourceUrl: "/changepassword",
        resourceIcon: "icon-caidan1",
      }
    ]
  },
  {
    resourceName: "图标",
    resourceUrl: "/",
    resourceIcon: "icon-datiqia",
    children: [
        {
          resourceName: "elemntui Icon",
          resourceUrl: "/icon",
          resourceIcon: "icon-caidan1",
        },
      ]
  },
  {
    resourceName: "表格",
    resourceUrl: "/",
    resourceIcon: "icon-jiexi",
    children: [
      {
        resourceName: "基础表格",
        resourceUrl: "/table",
        resourceIcon: "icon-caidan1",
      }
    ]
  },
  {
    resourceName: "表单",
    resourceUrl: "/",
    resourceIcon: "icon-yuanchuangquanlishengming",
    children: [
      {
        resourceName: "基础",
        resourceUrl: "/form",
        resourceIcon: "icon-caidan1",
      }
    ]
  }
];



const  sourceTYpe = [
  {name : "电影" ,value:"01"},
  {name : "电视剧" ,value:"02"},
];
const  VIPTYpe = [
  {name : "是" ,value:"01"},
  {name : "否" ,value:"02"},
];
const  shelfSTate = [
  {name : "上架" ,value:"01"},
  {name : "下架" ,value:"02"},
];
const  Recommend = [
  {name : "推荐" ,value:"01"},
  {name : "不推荐" ,value:"02"},
];

const getsourceTYpe =(val)=>{
  let re = '';
  sourceTYpe.forEach(function (obj) {
    if (obj.value == val) {
      re = obj.name;
      return
    }
  });
  return re
};
const getvipFlagTYpe =(val)=>{
  let re = '';
  VIPTYpe.forEach(function (obj) {
    if (obj.value == val) {
      re = obj.name;
      return
    }
  });
  return re
};const getshelfStateTYpe =(val)=>{
  let re = '';
  shelfSTate.forEach(function (obj) {
    if (obj.value == val) {
      re = obj.name;
      return
    }
  });
  return re
};const getisRecommendTYpe =(val)=>{
  let re = '';
  Recommend.forEach(function (obj) {
    if (obj.value == val) {
      re = obj.name;
      return
    }
  });
  return re
};
let Enum = {
  menuList,
  sourceTYpe,
  VIPTYpe,
  shelfSTate,
  Recommend,
  getsourceTYpe,
  getvipFlagTYpe,
  getshelfStateTYpe,
  getisRecommendTYpe
};

export default Enum
